/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Negocio;

import Datos.GerenteProveedorDB;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.swing.JOptionPane;

/**
 *
 * @author Jorge
 */
public class Lista_gp {
    private ArrayList gp=new ArrayList();
        
    public void listar() {
        try {
            GerenteProveedorDB gpDB = new GerenteProveedorDB();
            setGP(gpDB.listar());
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "No se pudo listar");
        }
    }

    /**
     * @return the clientes
     */
    public ArrayList getGP() {
        return gp;
    }

    /**
     * @param gp the clientes to set
     */
    public void setGP(ArrayList gp) {
        this.gp = gp;
    }
}
